package com.health.dao;

import com.github.pagehelper.Page;
import com.health.entity.QueryPageBean;
import com.health.pojo.Report;
import org.apache.ibatis.annotations.Param;

/**
 * @Classname ReportDao
 * @Description TODO
 * @Version 1.0.0
 * @Date 2023/3/19 0:04
 * @Author RainGrd
 */
public interface ReportDao {

    Report selectByMemberId(@Param("member_id") Integer memberId);


    int updateReport(Report report);

    int insertReport(Report report);

    int deleteById(Integer id);


    /**
     * 查询所有体检报告，如果用户是患者，就查询当前患者的体检报告，超级管理员可以查询所有
     * @return
     */
    Page<Report> selectReportListAll(QueryPageBean queryPageBean);

    Report selectReportById(Integer id);

    void deleteByMemberIdAndSetmealId(
            @Param("memberId") Integer memberId,@Param("setmealId") Integer setmealId);
}
